/// @function sai_scrViewDraw()
/// @description 绘制View

//绘制view
if(!view_show)
	return ;
	
//循环遍历绘制子view
var size = ds_list_size(view_child_list);
for(var i=0;i<size;i++)
{
	var _child = ds_list_find_value(view_child_list, i);
	//绘制子view
	with(_child)
		sai_scrViewDraw();
}

//把自己绘制到父view的surface上
if(view_parent!=noone)
{
	if(surface_exists(view_parent.view_surface))
	{
		surface_set_target(view_parent.view_surface);
		draw_surface(view_surface, x-view_parent.x, y-view_parent.y);
		surface_reset_target();
	}
}
